print(hasattr(list, '__str__'))  # true

print((1,2,3))


class MyList(list):
    def __str__(self):
        result = ''
        for value in self:
            result += str(value)
        return f"list:{result}"


nums = MyList([1,2,3])
print(nums)